<?php
/*
 *  Dinh manh Dau <dinhmanhdau@gmail.com>
 */
class sfWidgetFormInputFileEditableCustom extends sfWidgetFormInputFileEditable
{
  protected function configure($options = array(), $attributes = array())
  {
    parent::configure($options, $attributes);
    
    
  }
  protected function getFileAsTag($attributes)
  {
    if ($this->getOption('is_image'))
    {
      $attributes = array('width' => 100);
      return false !== $this->getOption('file_src') ? $this->renderTag('img', array_merge(array('src' => $this->getOption('file_src')), $attributes)) : '';
    }
    else
    {
      return $this->getOption('file_src');
    }
  }
}
